package org.groupg.practice.guiPractice.progressDemo;

/**
 * 在主方法中初始化进度条、事件总线和进度更新器，并启动任务。
 */
public class Main {
    public static void main(String[] args) {
        EventBus eventBus = new EventBus();
        ProgressBarDemo progressBarDemo = new ProgressBarDemo();
        ProgressListener progressListener = new ProgressListener(progressBarDemo);
        ProgressUpdater progressUpdater = new ProgressUpdater(eventBus);

        eventBus.register(progressListener);
        progressUpdater.startTask();
    }
}